$(function(){
    showCondition(true);
    var depData = $("#tabContent > .tab-pane.active").data();
    var range_ybbDep="";//查询数据的范围
    if(depData.value != "undefined")
	{
    	paramTabPage[tabId] = depData;
    	range_ybbDep = paramTabPage[tabId].previous;
    	$('#'+tabId+' #ybbDepHeadTitle').append(paramTabPage[tabId].depGroupName+"指标");
	}
    else
	{
    	range_ybbDep = "Hosp";
    	$('#'+tabId+' #ybbDepHeadTitle').html("全院指标");
	}
    
	
	
	getQuotas("ybbDep", loadData, "depallhosp-ul");
	
	function loadData(totalQuota){
		// 全院指标 (1.Hosp 2.All)  参数 4.为jsp中的div的id 5.jsp中ul的id
		loadHospQuota(range_ybbDep,totalQuota,"depallhospQuotasId","depallhosp-ul","ybDepTotal");
		// 加载指标的div 参数 3.为jsp中的div的id 4.jsp中ul的id
		loadDRGsQuota(totalQuota,"dep","科室","depQuotasId","dep-ul");
	    // 科室组指标的数据加载 
	    loadDRGsQuotaData(totalQuota,"dep",false,"ybDepDetail");
	}
});


